package com.ctgu.tengyun.dao.mybatis;

import com.ctgu.tengyun.domain.SaleOrderRecord;
import com.ctgu.tengyun.domain.SaleOrderRecordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaleOrderRecordMapper {
    int countByExample(SaleOrderRecordExample example);

    int insert(SaleOrderRecord record);

    int insertSelective(SaleOrderRecord record);

    List<SaleOrderRecord> selectByExample(SaleOrderRecordExample example);

    SaleOrderRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SaleOrderRecord record, @Param("example") SaleOrderRecordExample example);

    int updateByExample(@Param("record") SaleOrderRecord record, @Param("example") SaleOrderRecordExample example);

    int updateByPrimaryKeySelective(SaleOrderRecord record);

    int updateByPrimaryKey(SaleOrderRecord record);

    int countSaleOrder(@Param("PartNo") String PartNo, @Param("contactNo") String contactNo, @Param("orderStatus") Integer orderStatus);

    List<SaleOrderRecord> selectSaleOrder(@Param("PartNo") String PartNo, @Param("contactNo") String contactNo,
                                          @Param("orderStatus") Integer orderStatus,
                                          @Param("startIndex") Integer startIndex,
                                          @Param("pageSize") Integer pageSize);
}